package com.lry.jvm.classfile.constantpool;

import com.lry.jvm.classfile.ClassReader;

public class ConstantLongInfo implements ConstantInfo {

    private long value;

    public ConstantLongInfo(ClassReader reader) {
        value = reader.next2U4ToLong(); //u4
    }

    public long getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Long: " + value;
    }

}